home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / instools / ipro164.zip / EXAMPLE.001 next >
Text File  |  1992-02-11  |  5KB  |  143 lines

  1. ;This is designed to help you get your installation organized.  The
  2. ;intention is to provide examples with proper syntax, not to provide
  3. ;an actual working script.  Look at install.001 distributed with
  4. ;Install-Pro for an example of an actual script.  Please note that
  5. ;this is not supposed to displace the use of the documentation.
  6. ;Many helpful hints, suggestions and examples accompany the
  7. ;definitions for many of the commands.
  8.  
  9. ;BANNER and HELLO processing will replace a shareware screen after
  10. ;registering Install-Pro - see order.doc.
  11.  
  12. BANNER "   Insert your opening screen title line here "
  13.  
  14. HELLO  "   Any number of lines of text like this can be defined here.   "
  15. HELLO  "   Up to 13 lines are allowed on a single screen.
  16. HELLO  "   Screens may be broken up if desired with HELLOBREAK"
  17. HELLOBREAK
  18. HELLO  "   This text would be output on a new screen because it"
  19. HELLO  "   comes after a HELLOBREAK."
  20.  
  21. ;Up to 13 user prompt lines can be entered here.  These lines
  22. ;define the data entry form that the user sees, and creates space for
  23. ;the rest of the program to function.
  24.  
  25. USER   label_1 "Prompt 1" C:\DEFAULT1
  26. USER   label_2 "Prompt 2" C:\DEFAULT2
  27.  
  28. ;Portions of an installation may be designated as optional.
  29. ;The following line would prompt the user whether he wanted to
  30. ;install the "Prompt 3" files.
  31.  
  32. OPTION USER label_3 "Prompt 3" C:\DEFAULT3
  33.  
  34. ;Any number of subdirectories can be built child to the above directories
  35. ;that the user enters.
  36.  
  37. SUBDIR label_1 child1
  38. SUBDIR label_2 child2\child3
  39.  
  40. ;Any number of transfer files can go here - just make sure that you
  41. ;only specify those files on the current installation disk.
  42.  
  43. FILE label_1 file.001
  44. FILE label_2 file.002
  45. FILE label_3 file.003
  46.  
  47.  
  48. ;Split file transfers look like this:
  49.  
  50. FILE label_1 file.ex1t
  51.  
  52. ;file.ex1 is the source file, and file.ext is the destination
  53. ;file (Note the extra character at the end of the filename.)
  54.  
  55. ;On a subsequent disk, the following file would be appended to file.ext
  56.  
  57. FILE label_1 file.ex2t
  58.  
  59. ;file.ex2 is the source file, and file.ext is what it gets
  60. ;appended to.
  61.  
  62.  
  63. ;Transfer files to child subdirectories too
  64.  
  65. FILE label_1 child1\file.004
  66. FILE label_2 child2\child3\file.005
  67.  
  68. ;UPGRADE adds newer-file overwrite protection to a file transfer.
  69. ;VERIFY adds absolute overwrite protection to a file transfer.
  70.  
  71. FILE label_1 child1\file.004 UPGRADE
  72. FILE label_2 child1\file.005 VERIFY
  73.  
  74. ;Want to distribute compressed files?  Here's how.  These files can be
  75. ;split and repasted before the unzip process as well.
  76.  
  77. UNZIP label_1 zipfile
  78.  
  79. GOODBYE "   Build a thank-you screen, a good-bye screen, or whatever"
  80. GOODBYE "   kind of screen you want. Blank lines can be generated with"
  81. GOODBYE ""
  82. GOODBYE "   empty quotes"
  83.  
  84. ;This run command executes myprog1 from the directory that the
  85. ;user specified for label_1 above
  86.  
  87. RUN "!label_1\myprog1"
  88.  
  89. ;If you supply a .exe or .com extension, Install-Pro will load
  90. ;and execute your program directly - see the documentation for RUN
  91. ;for the benefits of this.
  92.  
  93. RUN "!label_2\myprog3.exe"
  94.  
  95. ;This run command executes myprog2 from the installation
  96. ;diskette's root directory.  If you specify a run that accesses
  97. ;OPTIONal directories, the command will be ignored if the user didn't
  98. ;accept that particular option.
  99.  
  100. RUN "!home\myprog2"
  101.  
  102. ;Make sure the user has some disk space left with this next
  103. ;optional command
  104.  
  105. SPACE label_1 150000
  106.  
  107. ;Name your first installation disk something besides "Disk 1" with this
  108. ;next command
  109.  
  110. FIRSTDISK "Install Disk"
  111.  
  112. ;You can either have DISK to prompt for a disk swap or END to
  113. ;finish with this disk
  114. END
  115.  
  116. ;If you had instead wanted another installation disk used, the following
  117. ;command would have prompted the user to insert the Utilities Disk
  118. ;and press enter to continue.  The lack of an argument after DISK
  119. ;defaults to Disk n instead.  Use of a DISK command means that the
  120. ;next disk must have a valid install.nnn where nnn is incremented
  121. ;from the current installation script.  (That is, install.002 is on
  122. ;the disk following install.001.)  The minimum information that must
  123. ;appear on install.002+ is a FILE command for all files on that disk,
  124. ;as well as an UNZIP command for all .zip files that need to be
  125. ;decompressed.  SUBDIR and GOODBYE commands are also valid but not
  126. ;required.
  127.  
  128. ;DISK "Utilities Disk"
  129.  
  130. ;If you wanted multi-module chaining, and this was the last disk of this
  131. ;installation, you would:
  132. ;CHAIN
  133.  
  134. ;CHAIN requires a program identical to the name of the currently running
  135. ;program (instpro.exe or install.exe if renamed) in the same directory.
  136. ;If this name doesn't exist, the user will be told to insert the correct
  137. ;disk and retry (very similar to DISK command procedure, except that
  138. ;we're looking for a program instead of a script.)
  139.  
  140. ;Unregistered versions need not worry about AUTHORIZATION
  141. AUTHORIZATION 00000
  142.  
  143.